//获取医生列表
export const getDoctorListApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post('/api/doctor/wx/queryListByPage', data)
	return res
}

//获取医生详情
export const getDoctorDetailApi = async (id) => {
	const {
		data: res
	} = await uni.$http.get(`/api/doctor/findById/${id}`)
	return res
}

//医生视频列表
export const getDoctorVideoApi = async (doctorCode, doctorName,uploadClassify) => {
	const {
		data: res
	} = await uni.$http.post('/api/subject/queryListByPage', {
		doctorCode,
		doctorName,
		uploadClassify,
		"pageNum": 1,
		"pageSize": 10,
	})
	return res
}

//获取所有医院
export const getHospitalApi = async () => {
	const {
		data: res
	} = await uni.$http.post('/api/doctor/findHospital')
	return res
}

// 获取所有科室
// export const getDepartmentApi = async () => {
// 	const {
// 		data: res
// 	} = await uni.$http.post('/api/doctor/findDepartment')
// 	return res
// }
